package br.com.ava.core.infra.persistencia;

import java.util.ResourceBundle;

public class LabelConverter {

	private static final LabelConverter INSTANCE;
	private ResourceBundle bundle;

	static {
		INSTANCE = new LabelConverter();
	}

	private LabelConverter() {
		this.bundle = ResourceBundle.getBundle("labels");
	}

	public static synchronized LabelConverter getInstance() {
		return INSTANCE;
	}

	public String getAsString(String chave) {
		return bundle.getString(chave);
	}
}
